﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace StringExtension
{
    static class StringExtensionTestClass
    {
        static void Main(string[] args)
        {
            string answer = "fuck this shit get out of the way.";
            string capitalized = answer.ToTitle();
            Console.WriteLine(answer);
            Console.WriteLine(capitalized);
        }
        static string ToTitle(this string s)
        {
            TextInfo textInfo = System.Globalization.CultureInfo.InvariantCulture.TextInfo;
            return textInfo.ToTitleCase(s);
        }
    }
}
